#include<stdio.h>
int main()
{
	int n,temp;
	while(scanf("%d",&n)!=EOF)
	{
		temp=0;
			for(int a=1;a<=n;a++)
			for(int b=1;b<=a;b++)
				if(a%b==a/b)
				temp++; 
			printf("%d\n",temp);
	}
}
	
